public class Randomize {
    public static Direction selectDirection() {
        return Direction.values()[(int) (Math.random() * Direction.values().length)];
    }

    public static int getRandomNum(int max) {
        return (int) (Math.random() * max);
    }
}
